package com.lianxian.xindong.login.di.module;

import android.app.Dialog;

import com.hxb.library.di.scope.ActivityScope;
import com.lianxian.xindong.commonres.dialog.ProgresDialog;
import com.lianxian.xindong.login.mvp.contract.LoginPhoneContract;
import com.lianxian.xindong.login.mvp.model.LoginPhoneModel;

import dagger.Binds;
import dagger.Module;
import dagger.Provides;


/**
 * @作者：hexingbo
 * @时间：06/30/2023
 * @描述：
 */
@Module
public abstract class LoginPhoneModule {

    @Binds
    abstract LoginPhoneContract.Model bindLoginPhoneModel(LoginPhoneModel model);

    @ActivityScope
    @Provides
    static Dialog provideDialog(LoginPhoneContract.View view) {
        return new ProgresDialog(view.getContext());
    }



}